package tplenguajes.grafo;

public class AutomataState
{
	private static int nextId = 1;
	private int id;
	private boolean isFinal = false;
	
	public AutomataState()
	{
		id = nextId;
		nextId++;
	}
	
	public int getId() { return id; }
	public void setAsFinal() { isFinal=true; }
	public void unsetAsFinal() { isFinal=false; }
	public boolean isFinal() { return isFinal; }
}
